

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_SERVO_MODULE_BLOCK_1607595180940'] = function(block)
        {
            let pin = this.getFieldValue('pin');
let angel =  Blockly.Arduino.valueToCode(this, 'angel', Blockly.Arduino.ORDER_ATOMIC);
          
            Blockly.Arduino.definitions_['include_EXT_SERVO_MODULE_BLOCK_1607595180940'] = `\n#include "Servo.h"`;
            Blockly.Arduino.definitions_['define_EXT_SERVO_MODULE_BLOCK_1607595180940'] = `Servo servo_${pin};`;
            Blockly.Arduino.definitions_['setup_EXT_SERVO_MODULE_BLOCK_1607595180940'] = `servo_${pin}.attach(${pin});`;
             return  `servo_${pin}.write(${angel});\r\n`;
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        